﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;
using System.Data;

namespace BUS
{
    public class Ban_BUS
    {
        //Load HD:
        public static DataTable LoadHD()
        {
            return Ban_DAO.LoadDSHDBan();
        }
        //Load DS nhan vien ban hang theo ngay:
        public static DataTable LoadNV()
        {
            return Ban_DAO.LoadDSNVBanHang();
        }
        //Load DS tinh hinh ban sach:
        public static DataTable LoadBanSach()
        {
            return Ban_DAO.LoadBanSach();
        }
        //Load DS tong tien hoa don:
        public static DataTable LoadTienHD()
        {
            return Ban_DAO.LoadDSTongtienHD();
        }
        //Them HD:
        public static void ThemHD(Ban_DTO them)
        {
            Ban_DAO.ThemHDBan(them);
        }
        //SuaHD:
        public static void SuaHD(Ban_DTO sua)
        {
            Ban_DAO.SuaHD(sua);
        }
        //xoa HD:
        public static void Xoahd(string xoa)
        {
            Ban_DAO.XoaHD(xoa);
        }

        //Tim Ma HD Ban:
        public static DataTable TimMaHD(string mahd)
        {
            return Ban_DAO.TimMaHDBan(mahd);
        }
        //Tim Ma theo sach:
        public static DataTable TimMaSach(string masach)
        {
            return Ban_DAO.TimMaSach(masach);
        }
        //Tim ma nv:
        public static DataTable TimMaNV(string manv)
        {
            return Ban_DAO.TimMaNV(manv);
        }
        //Tim theo Ma KH:
        public static DataTable TimMaKH(string makh)
        {
            return Ban_DAO.TimMaKH(makh);
        }
        //thong ke theo ten nv:
        public static DataTable ThongKeTen(string ten)
        {
            return Ban_DAO.TongTienTheoNhanVien(ten);
        }
        //thong ke thao ma hd:
        public static DataTable ThongKeMaHD(string mahd)
        {
            return Ban_DAO.TongMaHD(mahd);
        }
        //Thong ke theo ngay ban hang:
        public static DataTable ThongKeTheoNgay(DateTime ngay)
        {
            return Ban_DAO.TongTienTheoNgay(ngay);
        }
       
    }
}
